<?php
namespace app\controller;
use think\Controller;
use think\Hook;

class Index extends Controller{

  public function _initialize(){
    Hook::listen('check_login');
  }

  protected $beforeActionList = [
    'loadLayout',
  ];

  public function loadLayout(){
    $this->view->engine->layout('layout/index');
  }

  //首页
  public function index(){
    return view();
  }

  public function home(){
    return view();
  }

  //用户登录
  public function login(){
    return view();
  }




}
